﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Baiviet_Canlamsang : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        label_vande.Text = "siêu âm";
    }
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (DropDownList1.SelectedIndex == 0) {
            div_sieuam.Visible = true;
            div_noisoi.Visible = false;
            div_xquang.Visible = false;
            label_vande.Text = DropDownList1.SelectedItem.Text;
        }
        else if (DropDownList1.SelectedIndex == 1)
        {
            div_sieuam.Visible = false;
            div_noisoi.Visible = true;
            div_xquang.Visible = false;
            label_vande.Text = DropDownList1.SelectedItem.Text;
        }
        else if (DropDownList1.SelectedIndex == 2)
        {
            div_sieuam.Visible = false;
            div_noisoi.Visible = false;
            div_xquang.Visible = true;
            label_vande.Text = DropDownList1.SelectedItem.Text;
        }
    }
    protected void btn_sieuam_change_Click(object sender, EventArgs e)
    {
        div_sieuam_change.Visible = false;
        div_sieuam_end.Visible = true;
        rad_sieuam.Content = label_sieuam_change.Text;
    }
    protected void btn_sieuam_end_Click(object sender, EventArgs e)
    {
        div_sieuam_change.Visible = true;
        div_sieuam_end.Visible = false;
        label_sieuam_change.Text = rad_sieuam.Content; 
    }
    protected void btn_noisoi_change_Click(object sender, EventArgs e)
    {
        div_noisoi_change.Visible = false;
        div_noisoi_end.Visible = true;
        rad_noisoi.Content = label_noisoi_change.Text;
    }
    protected void btn_noisoi_end_Click(object sender, EventArgs e)
    {
        div_noisoi_change.Visible = true;
        div_noisoi_end.Visible = false;
        label_noisoi_change.Text = rad_noisoi.Content;
    }
    protected void btn_xquang_change_Click(object sender, EventArgs e)
    {
        div_xquang_change.Visible = false;
        div_xquang_end.Visible = true;
        rad_xquang.Content = label_xquang_change.Text;
    }
    protected void btn_xquang_end_Click(object sender, EventArgs e)
    {
        div_xquang_change.Visible = true;
        div_xquang_end.Visible = false;
        label_xquang_change.Text = rad_xquang.Content;
    }
}
